package clientClasses;
import java.util.HashMap;


public class Restaurant {
	
	private String name = "JavaRestaurant";
	private HashMap<String, Waiter> waiters; 
	private static Restaurant restaurant;
	private HashMap<Integer, Table> tables;
	
	private Restaurant(){
		//gets all the tables from DB and create new Table objects, put them in the tables hashmap
	}
	
	public Restaurant getInstance(){
		if(restaurant == null)
		{
			this.restaurant = new Restaurant();
		}
		
		return restaurant;
	}
	
	public void changeStatusTable(int id, boolean isActive){
		tables.get(id).setActive(isActive);
	}
	
}
